<?php
require_once "../config/app.config.php";
$entity = new EntityBLL();
$user = new UserBLL();
$user->AuthenticateUser("tibor.kiray@gmail.com", "12345");
//vp($_SESSION);
/*
try
{
    $entitydvo = $entity->GetBaseByID("0001-7f000001-498b6d7c-0800-22ed53c4", true);
} catch(Exception $e)
{
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}
*/
$entities = $entity->GetAll(true);
$entityField = new EntityFieldBLL();
$entityField->SavePropertyValue('0001-7f000001-49dcf5c0-3fe3-aab998b2', 'disabled', 'false', 0, 1);
?>
<html>
    <head>
    </head>
    <body>
    	<div>
    		<?
			foreach($entities as $val){
			?>
				<a href="entity_details.php?__id=<?=$val->getID()?>"><?=$val->getName()?></a><br />
			<?
			}
			//vp($entities);
			$entity->Create("TestEntity", "Test Entity", "Test Entities", "TEST_entity");
			?>
    	</div>
        <a name="bottom">Bottom</a>
    </body>
</html>
